<?php
class NoteModule extends CWebModule
{
    public $defaultController = 'post';
    public $layout="column2";

	public function init()
	{
	    parent::init();
	    Yii::app()->setComponent('urlManager', null);
		Yii::app()->setComponents($this->getComponents(false), false);

		$this->setImport(array(
			'note.components.*',
		    'note.models.*'
		));
		Yii::app()->language = 'zh_cn';
	}

	public function beforeControllerAction($controller, $action)
	{
		if(parent::beforeControllerAction($controller, $action))
		{
			return true;
		}
		return false;
	}
}